package com.tms.operation.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.tms.operation.mapper.TmsSilpMapper;
import com.tms.operation.domain.TmsSilp;
import com.tms.operation.service.ITmsSilpService;

/**
 * 回单Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-10-28
 */
@Service
public class TmsSilpServiceImpl implements ITmsSilpService 
{
    @Autowired
    private TmsSilpMapper tmsSilpMapper;

    /**
     * 查询回单
     * 
     * @param id 回单主键
     * @return 回单
     */
    @Override
    public TmsSilp selectTmsSilpById(Long id)
    {
        return tmsSilpMapper.selectTmsSilpById(id);
    }

    /**
     * 查询回单列表
     * 
     * @param tmsSilp 回单
     * @return 回单
     */
    @Override
    public List<TmsSilp> selectTmsSilpList(TmsSilp tmsSilp)
    {
        return tmsSilpMapper.selectTmsSilpList(tmsSilp);
    }

    /**
     * 新增回单
     * 
     * @param tmsSilp 回单
     * @return 结果
     */
    @Override
    public int insertTmsSilp(TmsSilp tmsSilp)
    {
        return tmsSilpMapper.insertTmsSilp(tmsSilp);
    }

    /**
     * 修改回单
     * 
     * @param tmsSilp 回单
     * @return 结果
     */
    @Override
    public int updateTmsSilp(TmsSilp tmsSilp)
    {
        return tmsSilpMapper.updateTmsSilp(tmsSilp);
    }

    /**
     * 批量删除回单
     * 
     * @param ids 需要删除的回单主键
     * @return 结果
     */
    @Override
    public int deleteTmsSilpByIds(Long[] ids)
    {
        return tmsSilpMapper.deleteTmsSilpByIds(ids);
    }

    /**
     * 删除回单信息
     * 
     * @param id 回单主键
     * @return 结果
     */
    @Override
    public int deleteTmsSilpById(Long id)
    {
        return tmsSilpMapper.deleteTmsSilpById(id);
    }
}
